package com.tl.commonlibrary.ui.exception;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.tl.commonlibrary.R;
import com.tl.commonlibrary.ui.adapter.IAdapter;
import com.tl.commonlibrary.ui.adapter.ViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2017/7/27 0027.
 */

public class CrashAdapter extends IAdapter<String> {
    public CrashAdapter(Context context, List<String> datas) {
        super(context, datas, R.layout.item_crash);
    }

    @Override
    protected void getView(ViewHolder viewHolder, String entity, int position, View convertView, boolean isConvert, int itemViewType, ViewGroup parent) {
        TextView contentTView  = viewHolder.getView(R.id.contentTView);
        contentTView.setText(entity);
    }

    @Override
    public void onClick(View v) {

    }
}
